
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import 'app_color.dart';

abstract class AppTheme {
  static ThemeData setTheme() {
    return ThemeData(
      // textTheme: const TextTheme().useSystemChineseFont(Brightness.light),
      // fontFamily: "Poppins",
      textSelectionTheme: const TextSelectionThemeData(
        cursorColor: AppColor.primary,
        selectionColor: AppColor.primary,
        selectionHandleColor: AppColor.primary,
      ),
      fontFamily: "PingFang SC",
      // fontFamily: 'newPingFangSC',
      // textTheme: const TextTheme(
      //   bodyLarge: TextStyle(fontFamily: 'Poppins'),
      //   bodySmall: TextStyle(fontFamily: 'Poppins'),
      //   bodyMedium: TextStyle(fontFamily: 'Poppins'),
      //   displayLarge: TextStyle(fontFamily: 'Poppins'),
      // ),
      inputDecorationTheme: InputDecorationTheme(
        labelStyle: const TextStyle(
          // fontFamily: 'Poppins',
          fontSize: 14,
          color: Colors.white,
        ),
        hintStyle: TextStyle(
          // fontFamily: 'Poppins',
          color: const Color(0x99FFFFFF),
          fontSize: 14.sp,
        ),
      ),
      colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      scrollbarTheme: ScrollbarThemeData(
        thumbColor: MaterialStateProperty.all(Colors.black.withOpacity(0.3)),
      ),
      scaffoldBackgroundColor: Colors.white,
      bottomNavigationBarTheme: const BottomNavigationBarThemeData(
        backgroundColor: AppColor.color181818,
      ),
      useMaterial3: true,
      splashColor: Colors.transparent,
      highlightColor: Colors.transparent,
      splashFactory: NoSplash.splashFactory,
    );
  }
}
